<?php

include_once 'config.php';
include_once 'include/dir.inc.php';
include_once 'include/shortcut.inc.php';
include_once 'include/view.inc.php';
include_once PATH_THEME_VIEW_FILE;

$fileList = dir_getFileList(PATH_SE);

$shortcuts = array(); $i = 0;
foreach ($fileList as $file) {
	$stct = shortcut_create();
	shortcut_load($stct, $file);
	$shortcuts[$i] = $stct;
	$i++;
}

$view = view_create();
view($view, 'shortcuts', $shortcuts);

$css = PATH_THEME_CSS .DS. 'default.css';
view($view, 'css', $css);

show($view);
